@media (max-width: 400px) {
    footer span {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #section-title {
        font-size: 10vw;
    }

    #section-p {
        font-size: 18px;
    }

    #section-1-image-1 {
        height: 60vh;
    }

    #section-3-title {
        font-size: 10vw;
    }

    #section-3-text {
        font-size: 18px;
    }

    .section-5 span {
        font-size: 18px;
        width: 90%;
    }

    .section-6 span {
        font-size: 18px;
        width: 90%;
    }

    .section-11 span {
        font-size: 18px;
        width: 90%;
    }

    .section-8 span {
        width: 90%;
        font-size: 18px;
    }

    #more-works-title {
        font-size: 30px;
    }

    .projeto img {
        width: 100%;
        max-width: none;
    }

    #titulo {
        font-size: 18px;
    }

    #p {
        font-size: 13px;
    }
}

@media (min-width: 480px) {
    #logo-sidebar {
        width: 300px;
        height: auto;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    #section-title {
        font-size: 10vw;
    }

    #section-p {
        font-size: 22px;
    }

    #section-1-image-1 {
        height: 105vh;
    }

    #section-3-title {
        font-size: 11vw;
    }

    #section-3-text {
        font-size: 22px;
    }

    .section-5 span {
        width: 95%;
        font-size: 22px;
    }

    .section-6 span {
        width: 95%;
        font-size: 22px;
    }

    .section-11 span {
        width: 95%;
        font-size: 22px;
    }

    .section-8 span {
        width: 95%;
        font-size: 22px;
    }

    .projeto img {
        width: 90%;
        max-width: none;
    }

    #titulo {
        font-size: 32px;
    }

    #p {
        font-size: 22px;
        line-height: 25px;
    }

    footer span {
        font-size: 30px;
        line-height: 35px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        transform: translateY(-100%);
        border: none;
        z-index: 100;
    }

    .sidebar.open {
        transform: translateY(0);
    }

    .menu-icon {
        display: block;
    }

    #square2 {
        display: block;
    }

    nav ul {
        margin-top: 0;
    }

    .contact {
        border-bottom: 1px solid #4E5053;
        border-top: 1px solid #4E5053;
    }

    .content {
        margin-left: 0;
    }

    .section-texts {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
        padding: 20px;
        max-width: none;
    }

    #section-num {
        display: none;
    }

    #section-p {
        gap: 20px;
    }

    #video-container-2,
    #video-container-3 {
        display: block;
        aspect-ratio: auto;
    }

    #video-frame-3b {
        max-height: 100vh;
    }

    .section-1 {
        flex-direction: column;
    }

    .images-section-1 {
        display: flex;
        width: 100%;
        height: 20%;
    }

    #section-1-image-1 {
        width: 100%;
    }

    #section-1-image-2 {
        width: 80%;
    }

    #section-1-image-3 {
        width: 20%;
    }

    .section-2 {
        display: flex;
        flex-direction: column;
    }

    #section-2-image-1 {
        width: 100%;
    }

    #section-2-image-2 {
        width: 100%;
    }

    .section-3 {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    #section-3-text {
        max-width: 100%;
    }

    #section-3-title {
        margin-top: 10px;
        margin-bottom: 15px;
        text-align: center;
    }

    #section-3-text {
        max-width: none;
        text-align: center;
    }

    .section-4 {
        flex-direction: column;
    }

    #section-4-image-1 {
        width: 100%;
    }

    #section-4-image-2 {
        width: 100%;
    }

    .section-5 {
        padding: 90px 0 45px 0;
        flex-direction: column;
    }

    #section-5-image {
        width: 100%;
    }

    .section-5 span {
        text-align: left;
        padding-left: 20px;
    }

    .section-6 {
        padding: 45px 0 0 0;
        flex-direction: column;
    }

    .section-11 {
        padding: 45px 0 0 0;
        flex-direction: column;
    }

    #section-6-image {
        width: 100%;
    }

    #section-11-image {
        width: 100%;
    }

    .section-6 span {
        text-align: left;
        padding-left: 20px;
    }

    .section-11 span {
        text-align: left;
        padding-left: 20px;
    }

    .section-8 {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    #section-8-title div {
        width: 17px;
        height: 17px;
    }

    .section-8 span {
        max-width: 95%;
        text-align: left;
    }

    /* .section-10 {
        display: grid;
        grid-template-columns: 45% 55%;
        grid-template-areas:
            "img1 img3"
            "img2 img2";
    }

    #section-10-image-1 {
        grid-area: img1;
        width: 100%;
        height: 100%;
    }

    #section-10-image-2 {
        grid-area: img2;
        width: 100%;
    }

    #section-10-image-3 {
        grid-area: img3;
        width: 100%;
    } */

    .section-more-works {
        flex-direction: column;
        gap: 30px;
        padding: 25px;
    }

    .more-works {
        flex-direction: column;
    }

    .projeto {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 20px;
    }

    #more-works-title {
        text-align: center;
    }

    .projeto span {
        padding: 0 20px;
    }

    .projeto img {
        display: block;
        margin: 0 auto;
    }

    #texts {
        gap: 10px;
    }

    #num {
        margin-left: 0px;
    }

    #p {
        max-width: none;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    footer span {
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .section-10 {
        display: grid;
        grid-template-columns: 59% 41%;
        grid-template-areas:
            "img1 img3"
            "img2 img2";
    }

    #section-10-image-1 {
        grid-area: img1;
        width: 100%;
        height: 100%;
        aspect-ratio: 5 / 6;
    }

    #section-10-image-2 {
        grid-area: img2;
        width: 100%;
    }

    #section-10-image-3 {
        grid-area: img3;
        width: 100%;
        aspect-ratio: 9 / 16;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section-texts {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
        padding: 20px;
        max-width: none;
    }

    #section-num {
        display: none;
    }

    #section-p {
        gap: 20px;
    }

    .section-1 {
        flex-direction: column;
    }

    .images-section-1 {
        display: flex;
        width: 100%;
        height: 20%;
    }

    #section-1-image-1 {
        width: 100%;
        height: 100vh;
    }

    #section-1-image-2 {
        width: 80%;
    }

    #section-1-image-3 {
        width: 20%;
    }

    .section-2 {
        display: flex;
        flex-direction: column;
    }

    #section-2-image-1 {
        width: 100%;
    }

    #section-2-image-2 {
        width: 100%;
    }

    .section-3 {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    #section-3-text {
        max-width: 100%;
    }

    #section-3-title {
        text-align: center;
    }

    #section-3-text {
        max-width: none;
        text-align: center;
    }

    .section-4 {
        flex-direction: column;
    }

    #section-4-image-1 {
        width: 100%;
    }

    #section-4-image-2 {
        width: 100%;
    }

    .section-5 {
        padding: 90px 0 45px 0;
        flex-direction: column;
    }

    #section-5-image {
        width: 100%;
    }

    .section-5 span {
        width: 95%;
        text-align: left;
        padding-left: 20px;
    }

    .section-6 {
        padding: 45px 0 0 0;
        flex-direction: column;
    }

    #section-6-image {
        width: 100%;
    }

    .section-6 span {
        width: 95%;
        text-align: left;
        padding-left: 20px;
    }

    .section-11 {
        padding: 45px 0 0 0;
        flex-direction: column;
    }

    #section-11-image {
        width: 100%;
    }

    .section-11 span {
        width: 95%;
        text-align: left;
        padding-left: 20px;
    }

    .section-8 {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    #section-8-title div {
        width: 17px;
        height: 17px;
    }

    .section-8 span {
        max-width: 95%;
        text-align: left;
    }

    .section-10 {
        display: grid;
        grid-template-columns: 59% 41%;
        grid-template-areas:
            "img1 img3"
            "img2 img2";
    }

    #section-10-image-1 {
        grid-area: img1;
        width: 100%;
        height: 100%;
        aspect-ratio: 5 / 6;
    }

    #section-10-image-2 {
        grid-area: img2;
        width: 100%;
    }

    #section-10-image-3 {
        grid-area: img3;
        width: 100%;
        aspect-ratio: 9 / 16;
    }

    .section-more-works {
        flex-direction: column;
        gap: 30px;
        padding: 25px;
    }

    .more-works {
        flex-direction: column;
    }

    .projeto {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 20px;
    }

    #more-works-title {
        text-align: center;
    }

    .projeto span {
        padding: 0 20px;
    }

    .projeto img {
        display: block;
        margin: 0 auto;
        max-width: 70%;
    }

    #texts {
        gap: 10px;
    }

    #num {
        margin-left: 0px;
    }

    #p {
        font-size: 15px;
        line-height: 18px;
        max-width: none;
    }

    footer {
        align-items: center;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .section-texts {
        max-width: 80%;
    }

    .section-more-works {
        flex-direction: column;
        gap: 30px;
    }
}